/*
 * @Filename: UserDao.java
 * @CreateTime: 2015-11-13 14:16:44
 * @Version: 1.0
 * @All rights (are) reserved.
 * @author miklechun
 */
package com.wonders.qxmanager.dao;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.wonders.qxmanager.base.IBaseDao;
import com.wonders.qxmanager.base.Parameter;
import com.wonders.qxmanager.base.WidgetPage;
import com.wonders.qxmanager.model.Team;
import com.wonders.qxmanager.utils.PageArrayList;

/**
 * team dao接口
 */
public interface TeamDao extends IBaseDao<Team, Serializable> {

	/**
	 * 新增对象
	 * @param team
	 */
	void addTeam(Team team);
	
  /**
	 * 修改对象
	 * @param team
	 */
	void updateTeam(Team team);
	
	/**
	 * 删除对象
	 * @param id
	 */
	boolean deleteTeam(int id);

	/**
	 * 动态条件 分页查询
	 * @param team
	 * @param page  
	 */
	PageArrayList<Team> getListByPage(Team team,WidgetPage page);
    
  /**
	 * 获取所有对象
	 */
	List<Team> getAll();
	
	/**
	 * 根据ID获取单个对象
	 * @param id
	 */
	Team getTeamById(BigDecimal id);

	List<Team> getAll(String sqlString);
      
}
